package com.example.demo.exception;

import lombok.Data;

@Data
public class BusinessException extends Exception{
    private String code;//状态码
    private String msg;//消息

    public BusinessException(String code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
